/*
* Copyright (c) 2016 . All Rights Reserved.
*/
package com.cgmnx.admin.web.controller.rbac;

import com.cgmnx.admin.web.controller.BaseAdminController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author: created  Date: 16/12/13 Time: 下午6:08
 * @version: 1.0
 */
@Slf4j
@Controller
public class ResourceUiAdminController extends BaseAdminController {

    /**
     * 跳转到保存页面
     *
     * @return
     */
    @RequestMapping(value = "/cgmnx/resource/list.html")
    public ModelAndView list() {

        ModelAndView modelAndView = new ModelAndView("pages/resource/list");
        setLoginUser(modelAndView);
        setMenuList(modelAndView);
        modelAndView.addObject("bizInfo", "{}");
        return modelAndView;
    }

    /**
     * 跳转到更新页面
     *
     * @return
     */
    @RequestMapping(value = "/cgmnx/resource/add.html")
    public ModelAndView add() {

        ModelAndView modelAndView = new ModelAndView("pages/resource/add");
        setLoginUser(modelAndView);
        setMenuList(modelAndView);
        modelAndView.addObject("bizInfo", "{}");
        return modelAndView;
    }

    /**
     * 跳转到更新页面
     *
     * @return
     */
    @RequestMapping(value = "/cgmnx/resource/assign.html")
    public ModelAndView assign() {

        ModelAndView modelAndView = new ModelAndView("pages/resource/assign");
        setLoginUser(modelAndView);
        setMenuList(modelAndView);
        modelAndView.addObject("bizInfo", "{}");
        return modelAndView;
    }


}